#pragma once
#include "afxwin.h"


// CBoxAdd dialog

class CBoxAdd : public CDialogEx
{
	DECLARE_DYNAMIC(CBoxAdd)

public:
	CBoxAdd(CWnd* pParent = NULL);   // standard constructor
	virtual ~CBoxAdd();

// Dialog Data
	enum { IDD = IDD_BOX_ADD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
  virtual BOOL OnInitDialog();
  afx_msg void OnTemplateStationSelChange();
  afx_msg void OnTemplateBoxSelChange();

public:
  tstring name_stl(void) { return Name.GetBuffer(0); }
  tstring tstation(void) { return Station.GetBuffer(0); }
  tstring template_box_name(void) { return template_box_name_.GetBuffer(0); }

public:
  CString Name;
  int NumEdges;
  BOOL Pairing;
  BOOL FixStation;
  CString Station;
  const CMeasureBox *TemplateBox;

private:
  CComboBox wnd_station_list_;
  CListBox wnd_template_station_;
  CComboBox wnd_template_box_;
  CString template_box_name_;
};
